home *** CD-ROM | disk | FTP | other *** search
- LogEntry
-
- Steve Roughton (Excalibur 104/39), August 1987.
- Source compiled with Microsoft C 4.0.
-
-
- Prepends a Fido/Opus log timestamp to the command line args and echoes
- the whole thing to the standard output. Useful for making custom
- entries in the log.
-
- LogEntry was written because there were several places I wanted to make
- special annotations in the log under the control of RUNOPUS.BAT. An
- example would be a note when the nodelist gets recompiled:
-
- if not exist c:\netmail\nodediff.a?? goto restart
- for %%x in (c:\netmail\nodediff.a??) do xarc %%x
- del c:\netmail\nodediff.a??
- if not exist nodediff.* goto restart
- xlatlist
- opusnode -f
- del nodediff.*
- --> LOGENTRY >>opus.log OPUS Recompiled Nodelist
- goto restart
-
-
- The entry in the log would look like
-
- $ 10 Aug 5:24:34 OPUS Recompiled Nodelist
-
-
- LogEntry uses '$' for its line identifier, which is supposed to mean
- 'Sysop Entry'. This can be changed using the Norton utilities or any
- equivalent binary editor. The string to look for is
-
- "$ %02d %s %2d:%02d:%02d "
-
- which is the output format for the timestamp.
-